ae9d824eae0a2aa5c3f3bb7d3990c852daeaffff,saf-compiler/src/main/java/cn/salesuite/injectview/complier/InjectViewProcessor.java,InjectViewProcessor,processInjectViews,#RoundEnvironment#,107
Before Change
private void processInjectViews(RoundEnvironment roundEnv) {
for (Element element : roundEnv.getElementsAnnotatedWith(InjectViews.class)) {
AnnotatedClass annotatedClass = getAnnotatedClass(element,"@InjectViews");
if (annotatedClass==null)
continue;
BindViewFields field = new BindViewFields(element);
annotatedClass.addFields(field);
}
}
After Change
AnnotatedClass annotatedClass = null;
BindViewFields field = null;
for (Element element : roundEnv.getElementsAnnotatedWith(InjectViews.class)) {
annotatedClass = getAnnotatedClass(element,"@InjectViews");
if (annotatedClass==null)
continue;
field = new BindViewFields(element);
annotatedClass.addFields(field);
}
}